package com.ourchem.bus.domain;

import com.ourchem.bus.vo.FileVo;
import com.ourchem.common.annotation.Excel;
import com.ourchem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 机构管理对象 organization
 * 
 * @author xiYan
 * @date 2023-01-12
 */
public class Organization extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 机构名 */
    @Excel(name = "机构名")
    private String name;

    /** 机构简介 */
    @Excel(name = "机构简介")
    private String intro;

    /** 机构封面（logo） */
    @Excel(name = "机构封面", readConverterExp = "l=ogo")
    private String cover;

    /** 机构类型（0：考研 1：考公 2：驾校 3：计算机 ） */
    @Excel(name = "机构类型", readConverterExp = "0=：考研,1=：考公,2=：驾校,3=：计算机")
    private String type;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /** 更新者 */
    @Excel(name = "更新者")
    private Long upadteBy;

    private FileVo file;

    private List<Course> cousers;

    public List<Course> getCousers() {
        return cousers;
    }

    private List<Lecturer> lecturers;

    public List<Lecturer> getLecturers() {
        return lecturers;
    }

    public void setLecturers(List<Lecturer> lecturers) {
        this.lecturers = lecturers;
    }

    public void setCousers(List<Course> cousers) {
        this.cousers = cousers;
    }

    public FileVo getFile() {
        return file;
    }

    public void setFile(FileVo file) {
        this.file = file;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }
    public void setUpadteBy(Long upadteBy) 
    {
        this.upadteBy = upadteBy;
    }

    public Long getUpadteBy() 
    {
        return upadteBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("intro", getIntro())
            .append("cover", getCover())
            .append("type", getType())
            .append("contact", getContact())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("upadteBy", getUpadteBy())
            .toString();
    }
}
